package com.dns.customers.aoptest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import sun.rmi.runtime.Log;

/**
 * @author :  yulei
 * @data :  2018/6/7 14:19
 * @Version :  1.0
 **/

public class TestMain {

   static   Logger log =LoggerFactory.getLogger(TestMain.class);

    public static void main(String[] args) {

        ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-aop.xml");

        NaiveWaiter naiveWaiter= (NaiveWaiter) ctx.getBean("naiveWaiter");
        naiveWaiter.greetTo("明天会更好...");
        naiveWaiter.smile("易小川",5);

    }

}
